package com.sctvcloud.dongqu.beans;

import com.heaven7.android.dragflowlayout.IDraggable;

/**
 * 拖拽控件数据
 */
public class DragItem implements IDraggable {

    private int id;
    private String title;
    private String type;
    private boolean canDrag;

    public DragItem(int id, String title, String type,boolean canDrag) {
        this.id = id;
        this.title = title;
        this.type = type;
        this.canDrag = canDrag;
    }

    public boolean isCanDrag() {
        return canDrag;
    }

    public void setCanDrag(boolean canDrag) {
        this.canDrag = canDrag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean isDraggable() {
        return canDrag;
    }
}
